package xcmg.syn.web.demo;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import xcmg.syn.infra.BasicController;
import yb.ecp.fast.infra.infra.ActionResult;


@RestController
@RequestMapping("/health")
public class HealthCheckController extends BasicController {

    @RequestMapping(value = "info", method = RequestMethod.GET)
    public ActionResult<Object> info() {
        //应该直接返回:操作成功
        return actionResult(System.currentTimeMillis());
    }
}
